﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
namespace ConfExpert.Forms.Rapor.YeniYapi
{
    public partial class GenelStokCK : XForm
    {
        public GenelStokCK()
        {
            InitializeComponent();
        }

        private void GenelStokCK_Load(object sender, EventArgs e)
        {
            splitContainerControl1.AutoSize();
            gridView1.Init("GetGenelStokCK");
            gridView1.AddDetailGrid(gridView2, "CustomerId");

            gridView1.FormatAsNumber(1, "OwnerKarbel", "OwnerCust", "GenelToplam");
            gridView2.FormatAsNumber(1, "OwnerKarbel", "OwnerCust", "Toplam");

            gridView1.FormatAsNumber(0, "TopAdedi");
            gridView2.FormatAsNumber(0, "TopAdedi");

            gridView1.AddSummary("OwnerKarbel", "OwnerCust", "GenelToplam", "TopAdedi");
            gridView2.AddSummary("OwnerKarbel", "OwnerCust", "Toplam", "TopAdedi");
            
            gridView1.BestFitColumns();
            gridView2.BestFitColumns();
        }
    }
}
